﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DiXiaSXX.aspx.cs" Inherits="Web.Pages.YongShui._6.ZhangWuGL.DiXiaSXX" Theme="Default" ValidateRequest="false" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            地下水信息
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <dx:ASPxGridView ID="gvDiXiaSXX" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="I_Y" Caption="年" Width="8%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_M" Caption="月" Width="8%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_BENYUEKZ" Caption="本月开帐" Width="20%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_BENYUEDZ" Caption="本月到账" Width="20%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_BENYUETP" Caption="本月退票" Width="18%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_DIXIASBS" Caption="地下水补收" Width="18%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Width="4%">
                                <DataItemTemplate>
                                    <asp:LinkButton ID="btnModify" runat="server" CausesValidation="false" Text="修改" 
                                        CommandArgument='<%#Eval("ID")%>' OnCommand="btnModify_Command"></asp:LinkButton>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Width="4%">
                                <DataItemTemplate>
                                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="false" Text="删除" 
                                        OnClientClick="return confirm('确认要删除吗？')" CommandArgument='<%#Eval("ID")%>' OnCommand="btnDelete_Command">
                                    </asp:LinkButton>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings VerticalScrollableHeight="300" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                    </dx:ASPxGridView>
                </div>
                <div style="height: 30px;">
                    <table align="right">
                        <tr>
                            <td>
                                <dx:ASPxButton runat="server" ID="btnTianJia" Text="添加" OnClick="btnTianJia_Click"></dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </div>
                <div runat="server" id="dvOperation">
                    <div class="tabletitle1" align="center">
                        <asp:Label ID="lblOperationTitle" runat="server" Text=""></asp:Label>
                    </div>
                    <div>
                        <table align="left" style="width: 80%; text-align: right; height: 90px;">
                            <tr>
                                <td style="width: 6%;"><span style="font-size: 12px;">开账年：</span></td>
                                <td style="width: 10%;">
                                    <dx:ASPxTextBox ID="txtKaiZhangN" Width="80%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 6%;"><span style="font-size: 12px;">开账月：</span></td>
                                <td style="width: 15%;">
                                    <dx:ASPxTextBox ID="txtKaiZhangY" Width="80%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 8%;"><span style="font-size: 12px;">本月开账：</span></td>
                                <td style="width: 10%;">
                                    <dx:ASPxTextBox ID="txtBenYueKZ" Width="80%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 8%;">
                                    <span style="font-size: 12px;">本月到账：</span>
                                </td>
                                <td style="width: 10%;">
                                    <dx:ASPxTextBox ID="txtBenYueDZ" Width="80%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 8%;">
                                    <span style="font-size: 12px;">本月退款：</span>
                                </td>
                                <td style="width: 10%;">
                                    <dx:ASPxTextBox ID="txtBenYueTK" Width="80%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 8%;">
                                    <span style="font-size: 12px;">地下水补收：</span>
                                </td>
                                <td style="width: 10%;">
                                    <dx:ASPxTextBox ID="txtDiXiaSBS" Width="80%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                    <table runat="server" id="tbOperationBtns" align="right">
                        <tr>
                            <td>
                                <dx:ASPxButton runat="server" ID="btnBaoCun" Text="保存" OnClick="btnBaoCun_Click"></dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton runat="server" ID="btnFangQi" Text="放弃" OnClick="btnFangQi_Click"></dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>

    </form>
</body>
</html>
